<template>
  <div class="card">
    <div class="card-header">
      <div>主标题</div>
      <div>副标题</div>
    </div>
    <div class="card-content" v-if="content">
      {{ content }}
    </div>
  </div>
</template>
<script lang="ts" setup>
type Prorps = {
  content?: string | number;
};
defineProps<Prorps>();
</script>
<style lang="less" scoped>
@border: #ccc;
.card {
  margin-top: 10px;
  border: 1px solid @border;
  &:hover {
    box-shadow: 0 0 10px @border;
  }
  &-header {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid @border;
  }
  &-content {
    padding: 10px;
  }
}
</style>
